package com.haoan.index.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.haoan.common.annotation.Excel;
import com.haoan.index.base.BaseEntity;

/**
 * 明信片对象 web_postcard
 *
 * @author autoGen
 * @date 2025-02-19
 */
@Data
@Schema(description = "明信片")
@TableName("web_postcard")
public class Postcard extends BaseEntity implements Serializable
{
    private static final long serialVersionUID=1L;

    /** $column.columnComment */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "PK_web_postcard")
    @ApiParam(name = "id",value = "PK_web_postcard")
    private Long id;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "明信片-日期")
    @ApiParam(name = "day",value = "明信片-日期")
    @Excel(name = "日期" , width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "`day`")
    private Date day;

    /** 图片 */
    @Schema(description = "明信片-图片")
    @ApiParam(name = "picture",value = "明信片-图片")
    @Excel(name = "图片")
    @TableField(value = "`picture`")
    private String picture;

    /** 文本 */
    @Schema(description = "明信片-文本")
    @ApiParam(name = "text",value = "明信片-文本")
    @Excel(name = "文本")
    @TableField(value = "`text`")
    private String text;

    /** 作者 */
    @Schema(description = "明信片-作者")
    @ApiParam(name = "author",value = "明信片-作者")
    @Excel(name = "作者")
    @TableField(value = "`author`")
    private String author;

    /** 创建时间 */
    @TableField(value = "`create_time`")
    private Date createTime;

    /** 创建人 */
    @TableField(value = "`create_by`", fill = FieldFill.INSERT)
    private String createBy;

    /** 修改时间 */
    @TableField(value = "`update_time`")
    private Date updateTime;

    /** 修改人 */
    @TableField(value = "`update_by`", fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    /** 有效标志1有效0无效(无效数据任何地方不可见) */
    @Schema(description = "明信片-有效标志1有效0无效(无效数据任何地方不可见)")
    @ApiParam(name = "valiFlag",value = "明信片-有效标志1有效0无效(无效数据任何地方不可见)")
    @Excel(name = "有效标志1有效0无效(无效数据任何地方不可见)")
    @TableField(value = "`vali_flag`")
    private Integer valiFlag;


}

